package com.example.spinning.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;

/**
 * @author bayernxmt
 * @create 2020-07-19-19:55
 */
public class Tfo {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String batch_no;
    private String name;
    private String workshop;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Timestamp date;
    private String machine_type;
    private String twist_direction;
    private Integer spindle_speed;
    private Float coiling;
    private Integer twist_per;

    @Override
    public String toString() {
        return "Tfo{" +
                "id=" + id +
                ", batch_no='" + batch_no + '\'' +
                ", name='" + name + '\'' +
                ", workshop='" + workshop + '\'' +
                ", date=" + date +
                ", machine_type='" + machine_type + '\'' +
                ", twist_direction='" + twist_direction + '\'' +
                ", spindle_speed=" + spindle_speed +
                ", coiling=" + coiling +
                ", twist_per=" + twist_per +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBatch_no() {
        return batch_no;
    }

    public void setBatch_no(String batch_no) {
        this.batch_no = batch_no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWorkshop() {
        return workshop;
    }

    public void setWorkshop(String workshop) {
        this.workshop = workshop;
    }

    public Timestamp getDate() {
        return date;
    }

    public void setDate(Timestamp date) {
        this.date = date;
    }

    public String getMachine_type() {
        return machine_type;
    }

    public void setMachine_type(String machine_type) {
        this.machine_type = machine_type;
    }

    public String getTwist_direction() {
        return twist_direction;
    }

    public void setTwist_direction(String twist_direction) {
        this.twist_direction = twist_direction;
    }

    public Integer getSpindle_speed() {
        return spindle_speed;
    }

    public void setSpindle_speed(Integer spindle_speed) {
        this.spindle_speed = spindle_speed;
    }

    public Float getCoiling() {
        return coiling;
    }

    public void setCoiling(Float coiling) {
        this.coiling = coiling;
    }

    public Integer getTwist_per() {
        return twist_per;
    }

    public void setTwist_per(Integer twist_per) {
        this.twist_per = twist_per;
    }
}
